<m-api-data-table [dataSource]="data">
	<ng-container mDataTableColumn header="区域名称">
		<ng-template let-area_name="area_name">
			<td>{{ area_name}} </td>
		</ng-template>
	</ng-container>
	<ng-container mDataTableColumn header="终端别名">
		<ng-template let-name="name">
			<td>{{ name}} </td>
		</ng-template>
	</ng-container>
	<ng-container mDataTableColumn header="在线">
		<ng-template let-online="online">
			<td>
				<m-online-status-text [status]="online"></m-online-status-text>
			</td>
		</ng-template>
	</ng-container>
	<ng-container mDataTableColumn header="状态">
		<ng-template let-status="status">
			<td>
				<m-enable-status-text [status]="status"></m-enable-status-text>
			</td>
		</ng-template>
	</ng-container>
	<ng-container mDataTableColumn header="当前客户端版本">
		<ng-template let-clicnetV="client_version">
			<td>{{ clicnetV}} </td>
		</ng-template>
	</ng-container>
	<ng-container mDataTableColumn header="客户端更新状态">
		<ng-template let-need_upgrade="need_upgrade">
			<td>
				<m-update-status-text [status]="need_upgrade"></m-update-status-text>
			</td>
		</ng-template>
	</ng-container>
	<ng-container mDataTableColumn header="客户端更新时间">
		<ng-template let-upgrade_at="upgrade_at">
			<td>
				<div *ngIf="upgrade_at !== '0001-01-01T00:00:00Z' ">
					{{ upgrade_at | date }}
				</div>
			</td>
		</ng-template>
	</ng-container>
</m-api-data-table>